package com.yyaccp.appinfo.service;

import com.yyaccp.appinfo.domain.AppCategory;
import com.yyaccp.appinfo.mapper.AppCategoryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("appCategory")
public class AppCategoryService {
    @Resource
    private AppCategoryMapper appCategoryMapper;

    public String getCName(Long cid){
        return appCategoryMapper.getCName(cid);
    }

    public List<AppCategory> selectByid(int parentId){
        return appCategoryMapper.selectByid(parentId);
    }
}
